import os
import sys
import getpass
import shutil

COPY_URL = r"D:\food"

def copy_dir(dir_path):
	
	new_dir_path = os.path.join(COPY_URL, os.path.basename(dir_path)+'shop')
	# print(new_dir_path)
	# return
	
	shutil.copytree(dir_path, new_dir_path)
	for root, dirs, files in os.walk(new_dir_path):
		for name in files:
			if name.endswith('.txt'):
				os.remove(os.path.join(root, name))


if __name__ == "__main__":
	copy_dir(os.getcwd())
	print("delete complete!!!")